home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
cnet
/
Cnetcal.lha
/
calendar
/
calendar.doc
< prev
next >
Wrap
Text File
|
1994-07-19
|
7KB
|
139 lines
/*****************************************************************************
* CNet Events Calendar 2.0 (c) Stan Smith- 6 July 1994 *
* *
* Either add as a standard AREXX Pfile/GFile (no arguments needed) or *
* install in sys.welcome as {#0 pfiles:calendar/calendar}Press [enter]{g32} *
* | *
* `- all {'s are control-Q *
* You may change the path if you wish to move the calendar data file. *
* The format of the data file should be self-explanatory... *
* The two comment lines below may be changed to whatever you wish; you *
* have 41 characters to play with. This text is auto-centered, so *
* don't worry about formatting it. *
* *
* I can be reached at: Surface Normal BBS (209)725-2623,,,22222222 *
* Fido 1:208/602.0 *
*****************************************************************************/
______________________________________________________________________________
THANKS!
Thanks for looking at/using my little calendar program. This file will
contain instructions for installation and use of this program, along with
any information about updates and changes. Please read it with any new
versions you download, since it might contain important information about
changes in operation.
If you have any suggestions, please send them to me via either my BBS or
a message to Ignus Fast on Future World!
I'd like to thank CNet sysop "Bill The Cat" for his comments and
suggestions! Hope this is closer to what you want...
______________________________________________________________________________
INSTALLATION:
You can install this program as either a PFile, GFile, or logon macro- I
use it as a GFile and in my startup sequence. To install as a standard
GFile or PFile, just (A)dd it as a standard AREXX file. There is one
optional agrument you can add before calling this program, but it would
only be used in the instance of a nightly (bi-nightly, or whatever schedule
you prefer) event.
To install as a logon macro, just edit the file SYSTEXT:SYS.WELCOME, and
add (at whatever point in the logon you wish your users to see the
calendar!)
{#0 pfiles:calendar/calendar}
|
`------- { always means control-Q
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are three optional display arguments that I will explain before I get
into the *required one.
The first display argument is BDAYS. If you add this, as follows:
{#0 pfiles:calendar/calendar bdays}
the program will ONLY display your BBS users birthdays, and NOT normal
system events.
The second is NORMAL. If you add this, then the program
will display system events and ignore the birthdays file.
The final display argument is BOTH. If you add this, then the program will
display the systems events, wait for a key press, then display user birthdays.
If you call it without ANY arguments, it will come up and ask the user
which one they wish to view. They also have the option of (Q)uitting.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Finally, you need to add the Calendar event; This will compile all of your
users birthdays into a calendar file for optional viewing. I did not add
it to the normal data file, because on even a medium-sized system, this will
likely result in more events for a month than the program can display. If
I can figure out a better way to display more than 15 verbose events in one
month, this will change. To add this nightly event, run the CNet CONFIG
program and add a new event, set up as:
Argument: Pfiles:calendar/calendar.rexx event
Port: 0 (Or wherever you run your nightly maintenance files)
Type: Only if system is idle (Again, use your judgement here)
Checkmark Sun-Sat (Or whatever days you wish it to run)
Time: 0 (midnight)
Valid: 100 (for up to one hour past midnight if the port is busy)
Interval: 0 (It should only run one time during that hour, so spacing
is not necessary)
Iterate: 1 (Do it once)
______________________________________________________________________________
USE:
When a user runs it, it will ask them if they wish to view either the
normal events file, or the optional user birthday file. The two files
cannot at this time be mixed; again, I may change this in future revisions.
In any case, if you install the archive as-is, it should run fine. There
are 3 lines in the code you may wish to change, however.
If you decide to store the calendar data files in other than
"PFiles:calendar/" you may do so.
There are also two comment lines, called FR.6 and FR.7. These may
contain anything you wish, with two restrictions. They are auto-centered
by the program, so you do not need to format them; and they must be no
longer than 41 characters. Note that you CAN include simple ANSI lines in
them; the program will automatically strip those out.
______________________________________________________________________________
UPDATES:
Ver 2.0
6 Jul 94 - Added the birthday event and option to view user birthdays.
- Made the code a little more robust, and added the auto-wrapping
of events to the next calendar year when near the end of the
current year.
Ver 2.1
14 Jul 94 - Added a check routine so you are not required to end the PATH=
statement with a slash; it IS a good habit to get in, however,
since legal paths require it...
- Made the title line indicate whether it is an Events calendar
or a User Birthday calendar.
- Made some more minor improvements in the code; does not affect
operation. Just trying to improve/optimize my use of AREXX.
Ver 2.2
18 Jul 94 - Made some more invisible improvments to the code
- Added the Press [enter]{g1} prompt into the program
- Added the BOTH argument to display both calendars sequentially
______________________________________________________________________________